﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace NETL.Engine.Util
{
	public class ReflectionUtil
	{
		public static void SetProperty(object obj, XElement e)
		{
			Type t = obj.GetType();

			t.GetProperty(e.Name.LocalName).GetSetMethod().Invoke(obj, new object[] { e.Value });
		}
	}
}
